﻿<UserControl x:Class="Xpom_Xpum__Integrated_Development_Environment.View.Controls.ProjectExplorerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
    xmlns:local="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.Model.Controls"
             xmlns:sys="clr-namespace:System;assembly=mscorlib" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <DockPanel Height="26" Background="#FFF0F0F0">
            <Label HorizontalAlignment="Stretch" Content="Project Explorer" DockPanel.Dock="Left" />
        </DockPanel>
        <TreeView ItemsSource="{Binding Path=Items}" Grid.Row="1" HorizontalAlignment="Stretch" Name="treeView1" VerticalAlignment="Stretch" MouseDoubleClick="treeView1_MouseDoubleClick" SelectedItemChanged="treeView1_SelectedItemChanged_1">
            <TreeView.Resources>
                <HierarchicalDataTemplate DataType="{x:Type local:ProjectItemModel}" ItemsSource="{Binding Items}">
                    <TextBlock Text="{Binding Name}"></TextBlock>
                </HierarchicalDataTemplate>
            </TreeView.Resources>
            <TreeView.ItemContainerStyle>
                <Style TargetType="TreeViewItem">
                    <Setter Property="IsExpanded" Value="True" />
                </Style>
            </TreeView.ItemContainerStyle>
        </TreeView>
    </Grid>
</UserControl>
